//
//  ZYCCycleFriendModel.m
//  ZDSC
//
//  Created by ZDTX on 2021/9/19.
//

#import "ZYCCycleFriendModel.h"
#import "NSDateExtra.h"
@implementation ZYCCyclePhotoModel

@end


@interface ZYCCycleFriendModel ()

@property (nonatomic,strong)NSDateFormatter *dateFormatter;

@end
@implementation ZYCCycleFriendModel

+ (nullable NSDictionary<NSString *, id> *)modelContainerPropertyGenericClass{
    
    return @{@"busFileList":[ZYCCyclePhotoModel class]};
}


- (NSInteger)total{
    return self.busFileList.count;
}

- (NSString *)uploadDay{
    NSInteger day = [NSDateExtra getDay:[self.dateFormatter dateFromString:self.uploadTime]];
    return [NSString stringWithFormat:@"%zd",day];
}


-(NSString *)uploadMonth{
    NSInteger month = [NSDateExtra getMonth:[self.dateFormatter dateFromString:self.uploadTime]];
    return [NSString stringWithFormat:@"%zd",month];
}
- (NSDateFormatter *)dateFormatter {
    if (!_dateFormatter) {
        _dateFormatter = [[NSDateFormatter alloc] init];
        [_dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
    }
    return _dateFormatter;
}

@end
